#!/bin/bash


echo '****** Test for various thread size : One GPU *******'
## LU nopiv
method=7;
n_gpu=1;
for n_thread in 1 2 4 6 8 10 12 ; do \
    n_thread_gpu=$((n_thread-n_gpu));
    ../../uhm $n_thread $n_thread_gpu $n_gpu 160 1 2048 256 $method ../../../../uhmfile/sphere4.uhm
done ;

method=7;
n_gpu=1;
n_thread=12;
for n_thread_gpu in 0 1 2 4 6 8 10 ; do \
    ../../uhm $n_thread $n_thread_gpu $n_gpu 160 1 2048 256 $method ../../../../uhmfile/sphere4.uhm
done ;



echo '****** Test for various thread size : Two GPU *******'

method=7;
n_gpu=2;
n_thread_gpu=1;
for n_thread in 2 4 6 8 10 12 ; do \
n_thread_gpu=$((n_thread-n_gpu));
    ../../uhm $n_thread $n_thread_gpu $n_gpu 160 1 2048 256 $method ../../../../uhmfile/sphere4.uhm
done ;

method=7;
n_gpu=2;
n_thread=12;
for n_thread_gpu in 0 1 2 4 6 8 10 ; do \
    ../../uhm $n_thread $n_thread_gpu $n_gpu 160 1 2048 256 $method ../../../../uhmfile/sphere4.uhm
done ;




